package cn.chousensei.chousenseiblog.dao;

import cn.chousensei.chousenseiblog.model.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface BlogMapper {

    void insert(Blog blog);

    int updateSelective(Blog blog);

    int count();

    List<Blog> selectPageOrderByCreateTime(@Param("offset") Integer offset, @Param("size") Integer size);
}
